package com.itheima.mianx;


public class DeMo05 {
    String name;
    int age;
}
//定义测试类
class Demo{
    public static void main(String[] args) {
        DeMo05 p1 = new DeMo05();
        p1.name="张三";
        p1.age=18;
        DeMo05 p2 = p1;
        p2.name="李四";
        System.out.print("p1.name="+p1.name+",p1.age="+p1.age+" ");
        System.out.print("p2.name="+p2.name+",p2.age="+p2.age+" ");
    }
}
